package Studey_05_09;

import java.util.Scanner;

class Base
{

}

class Sub1 extends Base{

}

class Sub2 extends Base{

}

public class Main1 {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String className = scanner.next();
            Base obj = (Base) Class.forName(className).newInstance();
        }
    }
}
